package com.woniuxy.platform.client;

import com.woniuxy.platform.client.param.LoginParam;
import com.woniuxy.platform.client.result.LoginDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import result.Result;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "userQueryClient",name="platform",path="/platform")
public interface UserQueryClient {

    @GetMapping("/user")
    public Result<LoginDto> login(@RequestBody LoginParam param);

}
